#include "shooter.h"
//#include <time.h>
#include <stdlib.h>
#include <stdio.h>

void bubble_sort(int *array,int n) {
	int i,j,tmp;
	for(i=0;i<n-1;i++) {
		for(j=n-1;j>i;j--) {
			if(array[j-1]>array[j]) {
				tmp = array[j-1];
				array[j-1]=array[j];
				array[j]=tmp;
			}
		}
	}
}

int A(int a) {
	int n = 10;
	int i;
	int array[n];
//	int array[] = {54,12,346,5,23,67,234,324,45,98};	

	srand(time(NULL));
	for(i=0;i<n;i++) {
		array[i] = rand()%100+1;
		printf("%d, ",array[i]);
	}	

	printf("\n");
	bubble_sort(array,n);
	return array[0];
}




